class SMPPAPI D2Net : public Library<D2Net>
{
#ifdef SMPPLIBRARY_EXPORT
	static void SetFunctions();
public:
	static void Init()
	{
		Name = "D2Net.dll";
		Offset = LoadDiabloLibrary();
		SetFunctions();
	}
#endif
public:
	typedef DWORD(__stdcall* TD2NetSendPacketToServer) (BOOL bZero, void* pPacket, size_t nSize);
	typedef DWORD(__stdcall* TD2NetSendPacketToClient) (BOOL bZero, int nClientID, void* pPacket, int nPacketSize);

	static TD2NetSendPacketToClient D2NetSendPacketToClient;
	static TD2NetSendPacketToServer D2NetSendPacketToServer;
	static DWORD* ptSendEntry;
};